<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>ColumNav example: Multiple columns</title>
    <script type="text/javascript" src="../js/yui/yahoo.js"></script>
    <script type="text/javascript" src="../js/yui/event.js"></script>
    <script type="text/javascript" src="../js/yui/container_core.js"></script>
    <script type="text/javascript" src="../js/yui/dom.js"></script>
    <script type="text/javascript" src="../js/yui/animation.js"></script>
    <script type="text/javascript" src="../js/yui/connection.js"></script>
    <script type="text/javascript" src="../js/carousel.js"></script>
    <script type="text/javascript" src="../js/columnav.js"></script>
    <link href="../css/carousel.css" rel="stylesheet" type="text/css"/>
    <link href="../css/columnav.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript">
      try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
      function init() {
          var cn_cfg = {
              numVisible: 2,
              prevElement: 'columnav-prev',
              source: document.getElementById('basketball-list')
          };
          var cn = new YAHOO.extension.ColumNav('columnav', cn_cfg);

          var sv_cfg = { url: location.href, modifier: 'HTML' };
          var sv = new YAHOO.extension.SourceViewer('source', sv_cfg);
      }
      YAHOO.util.Event.addListener(window, 'load', init);
    </script>
    <script type="text/javascript" src="../js/viewsource.js"></script>
    <link href="../css/stringify.css" rel="stylesheet" type="text/css"/>
  </head>
  <body>
    <div id="main">
      <div id="content">
        <p style="float:right"><a href="../">Documentation</a></p>
        <h1>ColumNav</h1>
        <h2>Example</h2>
        <div class="prevButton">
          <a href="javascript:void(0)" id="columnav-prev">&lt; back</a>
        </div>
        <div id="columnav" class="carousel-component">
          <div class="carousel-clip-region">
            <ul class="carousel-list"></ul>
          </div>
        </div>
        <div class="viewsource" id="source"></div>
        <p>The ColumNav above is initialized from the list below. Multiple columns are achieved by setting the <code>numVisible</code> configuration property.</p>
        <ul id="basketball-list">
          <li>
            <a href="http://sports.yahoo.com/nba/">NBA</a>
            <ul>
              <li>
                <a href="">Atlantic</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/bos">Boston Celtics</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/njn">New Jersey Nets</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/nyk">New York Knicks</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/phi">Philadelphia 76ers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/tor">Toronto Raptors</a></li>
                </ul>
              </li>
              <li>
                <a href="">Central</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/chi">Chicago Bulls</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/cle">Cleveland Cavaliers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/det">Detroit Pistons</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/ind">Indiana Pacers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/mil">Milwaukee Bucks</a></li>
                </ul>
              </li>
              <li>
                <a href="">Southeast</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/atl">Atlanta Hawks</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/cha">Charlotte Bobcats</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/mia">Miami Heat</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/orl">Orlando Magic</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/was">Washington Wizards</a></li>
                </ul>
              </li>
              <li>
                <a href="">Southwest</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/dal">Dallas Mavericks</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/hou">Houston Rockets</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/mem">Memphis Grizzlies</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/nor">New Orleans/OklaCity Hornets</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/sas">San Antonio Spurs</a></li>
                </ul>
              </li>
              <li>
                <a href="">Northwest</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/den">Denver Nuggets</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/min">Minnesota Timberwolves</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/por">Portland Trail Blazers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/sea">Seattle SuperSonics</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/uth">Utah Jazz</a></li>
                </ul>
              </li>
              <li>
                <a href="">Pacific</a>
                <ul>
                  <li><a href="http://sports.yahoo.com/nba/teams/gsw">Golden State Warriors</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/lac">Los Angeles Clippers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/lal">Los Angeles Lakers</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/pho">Phoenix Suns</a></li>
                  <li><a href="http://sports.yahoo.com/nba/teams/sac">Sacramento Kings</a></li>
                </ul>
              </li>
            </ul>
          </li>
          <li><a href="ajax/xml/ncaa/index.xml" rel="ajax">NCAA</a></li>
        </ul>
      </div>
    </div>
  </body>
</html>
